.App {
  text-align: left;
}

/* 通用样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 商品卡片悬停效果 */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 价格样式 */
.price-current {
  color: #ff4d4f;
  font-size: 18px;
  font-weight: bold;
}

.price-original {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
  margin-left: 8px;
}

/* 布局样式 */
.mall-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-logo {
  transition: all 0.2s;
}

/* 商品列表样式 */
.product-grid {
  margin-top: 16px;
}

/* 轮播图样式 */
.ant-carousel .slick-slide {
  text-align: center;
  height: 300px;
  line-height: 300px;
  background: #364d79;
  overflow: hidden;
}

.ant-carousel .slick-slide img {
  border-radius: 8px;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* 个人中心样式 */
.profile-menu-item {
  transition: background-color 0.2s;
}

.profile-menu-item:hover {
  background-color: #f5f5f5;
}

/* 管理后台样式 */
.admin-dashboard-card {
  margin-bottom: 16px;
}

.admin-dashboard-card .ant-statistic-title {
  font-size: 14px;
  color: #666;
}

.admin-dashboard-card .ant-statistic-content {
  font-size: 24px;
  font-weight: bold;
}

/* 热门商品列表样式 */
.hot-product-item {
  transition: transform 0.2s;
}

.hot-product-item:hover {
  transform: translateY(-2px);
}

/* 订单状态样式 */
.order-status-pending {
  color: #fa8c16;
}

.order-status-paid {
  color: #1890ff;
}

.order-status-shipped {
  color: #52c41a;
}

.order-status-delivered {
  color: #389e0d;
}

.order-status-cancelled {
  color: #f5222d;
}

/* 响应式优化 */
@media (max-width: 576px) {
  .ant-layout-header {
    padding: 0 16px;
  }
  
  .search-container .ant-input-search {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-card {
    margin-bottom: 12px;
  }
  
  .profile-menu-item {
    padding: 12px !important;
  }
  
  .product-card {
    margin-bottom: 16px;
  }
}

/* 布局样式 */
.mall-layout-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-layout-sider {
  background: #001529;
}

/* 表单样式 */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

/* 卡片间距 */
.card-spacing {
  margin-bottom: 16px;
}

/* 文本省略 */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 居中容器 */
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
